import urllib

a = """182.84.94.133 23/Sep/2019:00:39:55 +0800 "GET /p.gif?pagename=wap-strategyRecruit&pos=top-content&clickname=tel_btn&uuid=2636688029882849579177&platform=wap&url=http%253A%252F%252Fm.iyoujia.com%252Factivity%252FinvestorsActive.html%253Fca_s%253Dtoutiao%2526ca_n%253D090904&refer=-&ca_s=toutiao&ca_n=090904&v=3 HTTP/1.1" "http://m.iyoujia.com/activity/investorsActive.html?ca_s=toutiao&ca_n=090904" "Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML"""
data = {}
data = a.split()
print(data)
ip = data[0]
t = data[1]
d = ()
d = data[4].split('/p.gif?')
print(d)
pname = d[1].split('&')[0].split('=')[1]
pos = d[1].split('&')[1].split('=')[1]
name = d[1].split('&')[2].split('=')[1]
uuid = d[1].split('&')[3].split('=')[1]
platform = d[1].split('&')[4].split('=')[1]
url1 = d[1].split('&')[5].split('=')[1]
refer1 = d[1].split('&')[6].split('=')[1]
ca_s = '-'
ca_n = '-'
if len(d[1].split('&')) >= 8:
    ca_s = d[1].split('&')[7].split('=')[1]
if len(d[1].split('&')) >= 9:
    ca_n = d[1].split('&')[8].split('=')[1]
print(pname, pos)
import datetime
a = datetime.datetime.now() - datetime.timedelta(days=1)
print(a)
print(datetime.time(0, 0, 0))